import request from '@/utils/request'

// 查询场站调度策略列表
export function listStrategy(query) {
  return request({
    url: '/trendsDispatch/strategy/list',
    method: 'get',
    params: query
  })
}

// 查询场站调度策略详细
export function getStrategy(id) {
  return request({
    url: '/trendsDispatch/strategy/' + id,
    method: 'get'
  })
}

// 新增场站调度策略
export function addStrategy(data) {
  return request({
    url: '/trendsDispatch/strategy',
    method: 'post',
    data: data
  })
}

// 修改场站调度策略
export function updateStrategy(data) {
  return request({
    url: '/trendsDispatch/strategy',
    method: 'put',
    data: data
  })
}

// 删除场站调度策略
export function delStrategy(id) {
  return request({
    url: '/trendsDispatch/strategy/' + id,
    method: 'delete'
  })
}

// 导出场站调度策略
export function exportStrategy(query) {
  return request({
    url: '/trendsDispatch/strategy/export',
    method: 'get',
    params: query
  })
}

// 查询场站调度策略列表
export function getLoad(query) {
  return request({
    url: '/trendsDispatch/strategy/getLoad',
    method: 'get',
    params: query
  })
}
